<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.12.1">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Dweetta: DweettaUtils</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<h1 class="unit">Unit DweettaUtils</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td><a class="section"  href="#%40Uses">Uses</a></td><td>Classes, Interfaces, Objects and Records</td><td><a class="section"  href="#%40FuncsProcs">Functions and Procedures</a></td><td>Types</td><td>Constants</td><td>Variables</td></tr></table>
<a name="%40Description"></a><h2 class="description">Description</h2>
<p>
DweettaUtils.pas

<p>Some utilities for the lib.

<p></p>
<a name="%40Uses"></a><h2 class="uses">Uses</h2>
<ul class="useslist"><li>Classes</li><li>SysUtils</li><li><a   href="DweettaTypes.html">DweettaTypes</a></li></ul><h2 class="overview">Overview</h2>
<a name="%40FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code>function <b><a   href="DweettaUtils.html#DateTimeToInternetTime">DateTimeToInternetTime</a></b>(const aDateTime: TDateTime): String;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>function <b><a   href="DweettaUtils.html#InternetTimeToDateTime">InternetTimeToDateTime</a></b>(const aInternetTime: String): TDateTime;</code></td>
</tr>
<tr class="list">
<td class="itemcode"><code>function <b><a   href="DweettaUtils.html#URLEncodeParams">URLEncodeParams</a></b>(const aParamList: TStringList; aInQuery: Boolean): String;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code>function <b><a   href="DweettaUtils.html#CheckAndCreateParamList">CheckAndCreateParamList</a></b>(const Params: Array of <a   href="DweettaTypes.html#TDweettaParams">TDweettaParams</a>; const Values: array of const): String;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Functions and Procedures</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="DateTimeToInternetTime"></a><code>function <b>DateTimeToInternetTime</b>(const aDateTime: TDateTime): String;</code></td>
</tr>
<tr><td colspan="1">
<p>
Converts a TDateTime into a string compatible with RFC 822, updated by RFC 1123

<p> </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>aDateTime</dt>
<dd>The Date to be converted</dd>
</dl>
<h6 class="description_section">Returns</h6>
<p class="return">RFC 822,1123 date format</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="InternetTimeToDateTime"></a><code>function <b>InternetTimeToDateTime</b>(const aInternetTime: String): TDateTime;</code></td>
</tr>
<tr><td colspan="1">
<p>
Converts a string compatible with RFC 822, updated by RFC 1123 into a TDateTime

<p> </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>aInternetTime</dt>
<dd>The Date to be converted</dd>
</dl>
<h6 class="description_section">Returns</h6>
<p class="return">TDateTime format</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="URLEncodeParams"></a><code>function <b>URLEncodeParams</b>(const aParamList: TStringList; aInQuery: Boolean): String;</code></td>
</tr>
<tr><td colspan="1">
<p>
Convenient function to expand a GET param list

<p>  </p>
<h6 class="description_section">Parameters</h6>
<dl class="parameters">
<dt>aParamList</dt>
<dd>The list of params and values</dd>
<dt>aInQuery</dt>
<dd>If to translate spaces to + or to %20</dd>
</dl>
<h6 class="description_section">Returns</h6>
<p class="return">URLencoded params string</p></td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="CheckAndCreateParamList"></a><code>function <b>CheckAndCreateParamList</b>(const Params: Array of <a   href="DweettaTypes.html#TDweettaParams">TDweettaParams</a>; const Values: array of const): String;</code></td>
</tr>
<tr><td colspan="1">
<p>
Builds the param list according to defaults.</p>
</td></tr>
</table>
<h2 class="authors">Author</h2>
<ul class="authors">
<li>$Author$</li>
</ul>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.12.1</a> on 2011-02-18 14:36:58</em>
</span>
</body></html>
